
package d.presidenciales.bd;
import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class Conexion {
    private static MysqlDataSource mysql;
   
    public static Connection conexion;
    
    public static void conexionespecifica(String server,String bd,String pass) throws SQLException{
        mysql = new MysqlDataSource();
        
        
        mysql.setServerName(server);
        mysql.setDatabaseName(bd);
        mysql.setPassword(pass);
        
        conexion = mysql.getConnection();
        
    }
}
